<template>
    <div>数字：{{ number }}</div>
    <button @click="addNumber">点击数字+1</button>
</template>
<script setup> 
    import { ref } from "vue";
    let number = ref(0)
    const addNumber = () =>{
        number.value++
    }
</script>